#ifndef _MK_UTILITY_H_
#define _MK_UTILITY_H_

/************************************************************************/
/* 
*/
/************************************************************************/
class mk_utility
{
private:
	mk_utility();
	virtual ~mk_utility();

	
public:
	static void reverse_bytes(void * input, long len);

	static void fill_buff_with_word_value_be( unsigned short wValue, unsigned char * buff);
	
	static void fill_buff_with_dword_value_be(unsigned long dwValue, unsigned char * buff);

	static unsigned long reverse_dword(unsigned long InData);

	static unsigned short reverse_word(unsigned short InData);

	static int split_strings(char * delim, char * input, char strArrays[32][256]);

	static int ascii_to_unicode( char * asciiStr, unsigned short * unicodeStr, int * uniStrInBytes );

	static void ltrim ( char *s );

	static void rtrim ( char *s );

	static void trim ( char *s );
private:
	
};

#endif // PKCS11_TOKEN_NODE_H
